<!DOCTYPE HTML>
<html>
<head>
<title>请完成登录</title>
<link href="__STATIC__/css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="__STATIC__/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/js/xadmin.js"></script>
<!-- -->
<script>var __links = document.querySelectorAll('a');function __linkClick(e) { parent.window.postMessage(this.href, '*');} ;for (var i = 0, l = __links.length; i < l; i++) {if ( __links[i].getAttribute('data-t') == '_blank' ) { __links[i].addEventListener('click', __linkClick, false);}}</script>
<script src="__STATIC__/js/jquery.min.js"></script>
<script>$(document).ready(function(c) {
	$('.alert-close').on('click', function(c){
		$('.message').fadeOut('slow', function(c){
	  		$('.message').remove();
			
		});
	});	  
});
</script>
</head>
<body>
<!-- contact-form -->
<div class="tubiao warning">
<a href="{:url('index/index/login')}" class="icon lock"></a>
</div>
<div class="message warning">
<div class="inset">
	<div class="login-head">
		<h1>农厂汇<span style="font-size: small">小程序管理中心</span>登录</h1>
		<div class="alert-close"> </div>
	</div>
		<form class="layui-form">
			<li>
				<input type="text" class="text layui-input" placeholder="用户名" lay-verify="nikename" required="" name="m_name" id="L_username">
			</li>
			<li>
				<input type="password" placeholder="密码" name="m_pwd"  required="" lay-verify="pass">
			</li>
			<div class="clear"> </div>
			<div class="submit">
				<input type="submit" onclick="myFunction()" value="登录" name="sub" lay-filter="add"  lay-submit="" >
				<h4><a href="{:url('index/admin/wang')}">忘记密码 ?</a></h4>
				<h4><a href="{:url('index/admin/zhu')}">点我注册 ?</a></h4>
				<div class="clear">  </div>
			</div>
				
		</form>
		</div>					
	</div>
	</div>
	<div class="clear"> </div>
<!--- footer --->
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;

        //自定义验证规则
        form.verify({
            nikename: function(value){
                if(value.length < 1){
                    return '用户名不能为空呢！';
                }
            }
            ,pass: [/(.+){1,12}$/, '密码不能为空！']
            ,repass: function(value){
                if($('#L_pass').val()!=$('#L_repass').val()){
                    return '两次密码不一致';
                }
            }
        });
    });
</script>
</body>
</html>